package xyz.yamdestiny.logparser.entity;

import java.util.ArrayList;
import java.util.List;

public class ALog {

    private String fileName;
    private String filePath;
    private String parentFilePath;

    private String pid;
    private String date;
    private String threadName;
    private String id;
    private String deamonFlag;
    private String priority;
    private String tccl;

    private Entrance entrance;

    private List<Entrance> subEntrance = new ArrayList<>();
    private List<Node> nodes = new ArrayList<>();

    private String content;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getParentFilePath() {
        return parentFilePath;
    }

    public void setParentFilePath(String parentFilePath) {
        this.parentFilePath = parentFilePath;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getThreadName() {
        return threadName;
    }

    public void setThreadName(String threadName) {
        this.threadName = threadName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeamonFlag() {
        return deamonFlag;
    }

    public void setDeamonFlag(String deamonFlag) {
        this.deamonFlag = deamonFlag;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public String getTccl() {
        return tccl;
    }

    public void setTccl(String tccl) {
        this.tccl = tccl;
    }

    public Entrance getEntrance() {
        return entrance;
    }

    public void setEntrance(Entrance entrance) {
        this.entrance = entrance;
    }

    public List<Entrance> getSubEntrance() {
        return subEntrance;
    }

    public void setSubEntrance(List<Entrance> subEntrance) {
        this.subEntrance = subEntrance;
    }

    public List<Node> getNodes() {
        return nodes;
    }

    public void setNodes(List<Node> nodes) {
        this.nodes = nodes;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "LogFile [date=" + date + ", entrance=" + entrance + ", threadName=" + threadName + ", deamonFlag="
                + deamonFlag + ", id=" + id + ", pid=" + pid + ", priority=" + priority + ", tccl=" + tccl
                + ", subEntrance=" + subEntrance + ", nodes=" + nodes + ", content=\n" + content + "]";
    }

}
